<?php
set_time_limit(90);
    ob_start();
    ?>
    <?php include('score_card.php');?>

<?php	
		$content = ob_get_clean();
		require_once('html2pdf.class.php');
	try
    {
        $html2pdf = new HTML2PDF('L', 'letter', 'fr');
        $html2pdf->writeHTML($content, isset($_GET['vuehtml']));
        $html2pdf->Output('Balance_Score_Card.pdf');
    }
    catch(HTML2PDF_exception $e) {
        echo $e;
        exit;
    }
?>